<?php


namespace app\partneradmin\validate;

use think\Validate;

class AppPayConfig extends Validate
{
    //字段规则
    protected $rule = [
        'group' => 'require',
        'type' => 'require',
        'pay_config_id' => 'require',
    ];

    //验证器提示信息
    protected $message = [
        'group.require' => '请选择支付分组',
        'type.require' => '请选择支付业务',
        'pay_config_id.require' => '请选择支付通道',
    ];

    //使用场景
    protected $scene = [
        'add' => ['group', 'type', 'pay_config_id'],
        'edit' => ['group', 'type', 'pay_config_id'],
        'insertOrUpdate' => ['group', 'type', 'pay_config_id'],
    ];
}